AnchorLayout:
  anchor_x: "center"
  anchor_y: "center"
  ScrollView:
    canvas.before:
      Color:
        rgba: .5, 1, 0, .7
      Line:
        width: 1  # 设置边框宽度
        rectangle: self.x, self.y, self.width, self.height
    size_hint: (1, 1)  # Fill the parent layout
    do_scroll_x: False  # 禁止水平滚动
    do_scroll_y: True   # 启用垂直滚动
    BoxLayout:
      canvas.before:
        Color:
          rgba: 1, 0, 0, .7
        Line:
          width: 1  # 设置边框宽度
          rectangle: self.x, self.y, self.width, self.height
      orientation: 'vertical'
      size_hint_y: None  # 禁用 Y 方向的大小提示
      height: self.minimum_height  # 设置高度为内容的最小高度
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
      Label:
        text: '111'
        size_hint_y: None
        height: 40
